/**
 * Created by yuccc on 2017/5/15 0015.
 */
// 前三名
export const getTop3 = () => {
  return '/webapi/index.php?app=vote&act=option_top3'
};
// 获取所有选手
export const getAllplayer = () => {
  return '/webapi/index.php?app=vote&act=option'
};

// 验证码
export const getLogin = () => {
  return '/webapi/index.php?app=redirect&act=code&sign=123'
};
/***
 * 登陆
 * @returns {string}
 */

export const getToken = () => {
  return `/webapi/index.php?app=redirect&act=check_code&sign=123&identify=vote20170528&source=h5`
};
/**
 * 丽人个人信息
 * option_id  参赛选手option_id
 */
export const getBeautyMsg = (option_id) => {
  return `/webapi/index.php?&app=vote&act=option_info&option_id=${option_id}`
};
/**
 * 用户信息
 */
export const getAdminMsg = (token) => {
  return `/webapi/index.php?app=member&act=info&token=${token}`
};
/**
 * 获取距离上一名票数的排名
 * token      token参数
 * option_id  参赛选手option_id
 */

export const getDisVotes = (token, option_id) => {
  return `/webapi/index.php?&app=vote&act=rank_pre&token=${token}&option_id=${option_id}`
};
/**
 * 获取粉丝卡数量  路人才有
 * @returns {string}
 * user_id 粉丝用户id
 */
export const getFansCard = (token, user_id) => {
  return `/webapi/index.php?&app=vote&act=vote_card&token=${token}&user_id=${user_id}`
};
/**
 * 微信config
 */
export const getConfig = () => {
  return `/webapi/index.php?app=vote&act=share_config`
};
/***
 * 微信分享回调 psot
 * type = share
 */
export const shareCallback = () => {
  return `/webapi/index.php?app=callback&act=vote`
};
